$(document).ready(function(){
                        $(window).resize(function(){
                            $('.floatage').css({
                                position:'absolute',
                                left: ($(window).width() - $('.container').outerWidth())/2,
                                top: ($(window).height() - $('.container').outerHeight())/2
                                
                            });
                        });
                        // 最初运行函数
                        $(window).resize();
                    });